﻿using GalaSoft.MvvmLight;

namespace Reuse.PCL.Extensions
{
    public class LoadStatus : ObservableObject
    {
        bool _isLoading = true;
        public bool IsLoading
        {
            get { return _isLoading; }
            set { Set( ( ) => this.IsLoading, ref _isLoading, value ); }
        }
        string _loadingText;

        public string LoadingText
        {
            get { return _loadingText; }
            set { Set( ( ) => this.LoadingText, ref _loadingText, value ); }
        }
        bool _hasFeedError = false;

        public bool HasFeedError
        {
            get { return _hasFeedError; }
            set
            {
                Set( ( ) => this.HasFeedError, ref _hasFeedError, value );
                HasError = value;
            }
        }
        string _hasFeedErrorText;

        public string HasFeedErrorText
        {
            get { return _hasFeedErrorText; }
            set { Set( ( ) => this.HasFeedErrorText, ref _hasFeedErrorText, value ); }
        }
        bool _hasNetError = false;

        public bool HasNetError
        {
            get { return _hasNetError; }
            set
            {
                Set( ( ) => this.HasNetError, ref _hasNetError, value );
                HasError = value;
            }
        }
        string _hasNetErrorText;

        public string HasNetErrorText
        {
            get { return _hasNetErrorText; }
            set { Set( ( ) => this.HasNetErrorText, ref _hasNetErrorText, value );
            }
        }

        bool _hasError;

        public bool HasError
        {
            get { return _hasError; }
            set { Set( ( ) => this.HasError, ref _hasError, value ); }
        }

        public string Section { get; set; }
        public string Header { get; set; }

    }
}
